package com.ys.entity.finance;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCW_WanliDrawingItem", catalog="Id")
public class TcwWanliDrawingItem extends BaseEntity<TcwWanliDrawingItem> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Pbid", nameJava="pbid", typeDataBase="varchar")
	private String pbid;
	@YsField(nameDataBase="CompanyBankInfoId", nameJava="companyBankInfoId", typeDataBase="bigint")
	private Long companyBankInfoId;
	@YsField(nameDataBase="OutCurrencyCode", nameJava="outCurrencyCode", typeDataBase="varchar")
	private String outCurrencyCode;
	@YsField(nameDataBase="OutSum", nameJava="outSum", typeDataBase="decimal")
	private BigDecimal outSum;
	@YsField(nameDataBase="ExchangeRate", nameJava="exchangeRate", typeDataBase="decimal")
	private BigDecimal exchangeRate;
	@YsField(nameDataBase="ProceduresSum", nameJava="proceduresSum", typeDataBase="decimal")
	private BigDecimal proceduresSum;
	@YsField(nameDataBase="ProceduresRatio", nameJava="proceduresRatio", typeDataBase="decimal")
	private BigDecimal proceduresRatio;
	@YsField(nameDataBase="InCurrencyCode", nameJava="inCurrencyCode", typeDataBase="varchar")
	private String inCurrencyCode;
	@YsField(nameDataBase="InSum", nameJava="inSum", typeDataBase="decimal")
	private BigDecimal inSum;
	@YsField(nameDataBase="ApiBackStatus", nameJava="apiBackStatus", typeDataBase="tinyint")
	private Integer apiBackStatus;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcwWanliDrawingItem setId(Long id) {
		this.id = id;
		return this;
	}
	public String getPbid() {
		return pbid;
	}
	public TcwWanliDrawingItem setPbid(String pbid) {
		this.pbid = pbid;
		return this;
	}
	public Long getCompanyBankInfoId() {
		return companyBankInfoId;
	}
	public TcwWanliDrawingItem setCompanyBankInfoId(Long companyBankInfoId) {
		this.companyBankInfoId = companyBankInfoId;
		return this;
	}
	public String getOutCurrencyCode() {
		return outCurrencyCode;
	}
	public TcwWanliDrawingItem setOutCurrencyCode(String outCurrencyCode) {
		this.outCurrencyCode = outCurrencyCode;
		return this;
	}
	public BigDecimal getOutSum() {
		return outSum;
	}
	public TcwWanliDrawingItem setOutSum(BigDecimal outSum) {
		this.outSum = outSum;
		return this;
	}
	public BigDecimal getExchangeRate() {
		return exchangeRate;
	}
	public TcwWanliDrawingItem setExchangeRate(BigDecimal exchangeRate) {
		this.exchangeRate = exchangeRate;
		return this;
	}
	public BigDecimal getProceduresSum() {
		return proceduresSum;
	}
	public TcwWanliDrawingItem setProceduresSum(BigDecimal proceduresSum) {
		this.proceduresSum = proceduresSum;
		return this;
	}
	public BigDecimal getProceduresRatio() {
		return proceduresRatio;
	}
	public TcwWanliDrawingItem setProceduresRatio(BigDecimal proceduresRatio) {
		this.proceduresRatio = proceduresRatio;
		return this;
	}
	public String getInCurrencyCode() {
		return inCurrencyCode;
	}
	public TcwWanliDrawingItem setInCurrencyCode(String inCurrencyCode) {
		this.inCurrencyCode = inCurrencyCode;
		return this;
	}
	public BigDecimal getInSum() {
		return inSum;
	}
	public TcwWanliDrawingItem setInSum(BigDecimal inSum) {
		this.inSum = inSum;
		return this;
	}
	public Integer getApiBackStatus() {
		return apiBackStatus;
	}
	public TcwWanliDrawingItem setApiBackStatus(Integer apiBackStatus) {
		this.apiBackStatus = apiBackStatus;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcwWanliDrawingItem setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcwWanliDrawingItem setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcwWanliDrawingItem setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcwWanliDrawingItem tcwWanliDrawingItem(
		String pbid,
		Long companyBankInfoId,
		String outCurrencyCode,
		BigDecimal outSum,
		BigDecimal exchangeRate,
		BigDecimal proceduresSum,
		BigDecimal proceduresRatio,
		String inCurrencyCode,
		BigDecimal inSum,
		Integer apiBackStatus,
		Integer status
			) {
		TcwWanliDrawingItem entity = new TcwWanliDrawingItem();
		entity.setPbid(pbid);
		entity.setCompanyBankInfoId(companyBankInfoId);
		entity.setOutCurrencyCode(outCurrencyCode);
		entity.setOutSum(outSum);
		entity.setExchangeRate(exchangeRate);
		entity.setProceduresSum(proceduresSum);
		entity.setProceduresRatio(proceduresRatio);
		entity.setInCurrencyCode(inCurrencyCode);
		entity.setInSum(inSum);
		entity.setApiBackStatus(apiBackStatus);
		entity.setStatus(status);
		return entity;
	}
}